documentation updates
authorØyvind Kolås <ok@src.gnome.org>
Fri, 9 Sep 2005 11:13:30 +0000 (11:13 +0000)
committerØyvind Kolås <ok@src.gnome.org>
Fri, 9 Sep 2005 11:13:30 +0000 (11:13 +0000)
ChangeLog
docs/Makefile.am
docs/index-static.html.in

index 60a9ea7b446a16e46404e091d4171bab5e199c61..d24b9ffafb1bc1002d800f6753475e28b06015b0 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2005-09-09  Øyvind Kolås  <pippin@gimp.org>
+
+       * docs/Makefile.am: set BABL_PATH to builddir for creating the
+       documentation
+       * docs/index-static.html.in: various updates.
+
 2005-09-09  Øyvind Kolås  <pippin@gimp.org>
 
        * babl/base/type-u16.c: (convert_double_u16_scaled):
index bf538b662c0b3848a5b505410f9a8c5147a45a75..a91b2b185141d7413b0559618a964ae9a55e1414 100644 (file)
@@ -28,11 +28,11 @@ all: $(HTML_FILES)
 
 
 
-index.html: index-static.html $(top_builddir)/tests/babl_html_dump $(top_srcdir)/AUTHORS  $(top_srcdir)/NEWS
+index.html: index-static.html $(top_builddir)/tests/babl_html_dump $(top_srcdir)/AUTHORS  $(top_srcdir)/NEWS $(top_srcdir)/extensions/*.so Makefile.am
        echo -n "HTML: $@"
        cp $< $@ 
        (TMPFILE=`tempfile`;\
-       $(top_builddir)/tests/babl_html_dump > $$TMPFILE;\
+       export BABL_PATH="$(top_builddir)/extensions"; $(top_builddir)/tests/babl_html_dump > $$TMPFILE;\
        $(top_srcdir)/docs/tools/xml_insert.sh $@ BablBase $$TMPFILE;\
        rm -f $$TMPFILE )
 
index ff707ef9d4add9eecdeed2b924602684f20aa02e..a318276b5dcb783db047904c8ca5365215d7ccbf 100644 (file)
               pixel_count<span class='paren'>);</span></pre>
         
         <p>If the existing pixel formats are not sufficient for your conversion
-        needs, new ones can be created and named on the fly. The constructor
+        needs, new ones can be created on the fly. The constructor
         will provide the prior created one if duplicates are registered. </p>
         <pre
-><span class='function'>babl_format_new</span> <span class='paren'>(</span><span class='string'>"bgr-u8"</span>,
-                 <span class='function'>babl_model</span> <span class='paren'>(</span><span class='string'>"rgb"</span><span class='paren'>)</span>,
+><span class='function'>babl_format_new</span> <span class='paren'>(</span><span class='function'>babl_model</span> <span class='paren'>(</span><span class='string'>"rgb"</span><span class='paren'>)</span>,
                  <span class='function'>babl_type</span> <span class='paren'>(</span><span class='string'>"u8"</span><span class='paren'>)</span>,
                  <span class='function'>babl_component</span> <span class='paren'>(</span><span class='string'>"B"</span><span class='paren'>)</span>,
                  <span class='function'>babl_component</span> <span class='paren'>(</span><span class='string'>"G"</span><span class='paren'>)</span>,
                  <span class='function'>babl_component</span> <span class='paren'>(</span><span class='string'>"R"</span><span class='paren'>)</span>,
                  <span class='NULL'>NULL</span><span class='paren'>);</span></pre>
 
-        <p>Instead of a linear buffer you can an image descriptor which desribes the start of the memory segment, the pitch in bytes between samples, and the rowstride (optionally 0 for unlimited).
+        <p>Instead of a linear buffer you can an image descriptor which desribes the start of the memory segment, the pitch in bytes between samples, and the rowstride (not used yet,
+        use 0 to indicate unlimited for compatibility with future API.)
         </p>
         <pre
 ><span class='function'>babl_process</span> <span class='paren'>(</span><span class='function'>babl_fish</span> <span class='paren'>(</span><span class='string'>"srgb"</span>, <span class='string'>"y'cbcr420p"</span><span class='paren'>)</span>,
                           <span class='NULL'>NULL</span><span class='paren'>);</span>
 </pre>
 
-        <p>For more code samples look in the tests directory.</p>
-        
         <a name='Extending'></a>
         <h2>Extending</h2>
         
         <p>For samples of how the current internal api of specification of
-        data types, color models, and conversions look in the babl/base/
+        data types, color models, and conversions look in the <tt>extensions/</tt>
         directory. The tables in this HTML file is directly generated
-        based on the data registered by BablBase. The API's used are very
+        based on the data registered by BablCore (double and RGBA), BablBase (core datatypes, and RGB models), 
+        extensions (CIE Lab, naive CMYK, various shortcut conversions). The API's used are very
         similar in style to the API's described under the <a href='#Usage'>Usage section</a>.
         </p>
 
-        <p>For now, the only way to extend babl is from the application
-        using the library, by structuring your code in a similar fashion
-        to BablBase it should be easier to later turn it into a loadable
-        module.
-        </p>
         
         <a name='TODO'></a>
         <h2>TODO</h2>